//
//  SecondModel.m
//  22--HomeWork QQ音乐界面
//
//  Created by 冀永金 on 16/8/14.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "SecondModel.h"
#import "MVModel.h"
#import "ListModel.h"
@implementation SecondModel
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"contents"]) {
        _list = [ListModel modelWithDic:value];
    }
    if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray *array = [NSMutableArray array];
        NSArray *valueArray = value;
        for (NSDictionary *dic in valueArray) {
            MVModel *model = [MVModel modelWithDic:dic];
            [array addObject:model];
        }
        _mv_show_play = array;
    }
}
@end
